[assembly: SilverlightActivator.ApplicationStartupMethod(typeof(Spotted.App_Start.StorageInitializer), "ApplicationStartup", Order = 10)]

namespace Spotted.App_Start
{
    using System;
    using System.Windows;
    using Microsoft.WindowsAzure.Samples.Phone.Storage;

    public class StorageInitializer
    {
        public static void ApplicationStartup()
        {
        

            // CloudStorageClientResolverAccountAndKey used to connect to Windows Azure Storage Services account directly.
            
             var resolver = new CloudStorageClientResolverAccountAndKey(
               new StorageCredentialsAccountAndKey("portalvhdsw254ps4cgcsr1", "9YUqCJJ5OwAKpRyuSvt8BHWsAynehfF1IGi82uZsEJfDZwMk3FtWNMnLb+M+sRDRVFratqNqYC1C6jNhQoSgaA=="),
               new Uri("http://portalvhdsw254ps4cgcsr1.blob.core.windows.net"),
                new Uri("http://portalvhdsw254ps4cgcsr1.queue.core.windows.net"),
               new Uri("http://portalvhdsw254ps4cgcsr1.table.core.windows.net"),
               Deployment.Current.Dispatcher);

            CloudStorageContext.Current.Resolver = resolver;
        }
    }
}